# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer:
pkgname=twm
pkgver=1.0.12
pkgrel=1
pkgdesc="Tom's or Tab Window Manager for the X Window System"
url="https://www.x.org/archive/X11R6.8.1/doc/twm.1.html"
arch="all"
license="MIT"
options="!check"  # No test suite.
makedepends="bison util-macros libxext-dev libx11-dev libxt-dev libice-dev
	libxmu-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/releases/individual/app/twm-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datarootdir=/usr/share
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
f3d68df7e06516f6b74f19181efcfd9db2479c8ea0c72c3a6ed0dc1b222405b40d81a2dea17b662955e0c1783e87d0d3eb067c3b6e7c6eed8c0d38d03d362260  twm-1.0.12.tar.xz
"
